<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<div class="t_bar">发榜方情况</div>
<c:set var="lastYear" scope="request"><x:out select="$xmlData/data/proposal/last_year"/></c:set>
<c:set var="curryear">${param.curryear}</c:set>
<table id="basicProjectInfo" border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
    <col style="width:10%"/>
    <col style="width:10%"/>
    <col style="width:30%"/>
    <col style="width:20%"/>
    <col style="width:30%"/>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>所属行业：</td>
        <td>
            <c:set var="belon_industry">{'id':'<x:out
                    select="$xmlData/data/proposal/belon_industry_code"/>','name':'<x:out
                    select="$xmlData/data/proposal/belon_industry_name"/>'}</c:set>
            <cpt:tree key="belon_industry" cacheable="false" className="hn_iuput_kuang" readonly="true"
                      value="${belon_industry}" label="所属行业"
                      id="belon_industry" showPattern="current" shieldPattern="0" topCheckbox="false"
                      onClick="initTreeValueTeamPerson"/>
            <input id="belon_industry_code" type="hidden" name="proposal/belon_industry_code" class="required"
                   label="所属行业" value="<x:out select="$xmlData/data/proposal/belon_industry_code" />"/>
            <input id="belon_industry_name" type="hidden" name="proposal/belon_industry_name"
                   value="<x:out select="$xmlData/data/proposal/belon_industry_name" />"/>
        </td>
        <td align="right"><span class="color_red">*</span>邮编：</td>
        <td>
            <input type="text" name="proposal/zip_code" class="required post" label="邮编" maxlength="6" onfocus="InitInput.setNumber(this,6,0,0)"
                   value="<x:out select="$xmlData/data/proposal/zip_code" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>企业经济性质：</td>
        <td colspan="3">
            <c:set var="economic_nature"><x:out select="$xmlData/data/proposal/economic_nature_value" /></c:set>
            <cpt:checkbox key="economic_nature" name="economic_nature" value="${economic_nature }" repeatColumn="4" tagType="radio" style="border: 0px; padding: 0px; margin: 0px;" ></cpt:checkbox>
            <input type="hidden" name="proposal/economic_nature_value" id="economic_nature_value" value="<x:out select="$xmlData/data/proposal/economic_nature_value" />" class="required" label="企业经济性质"/>
            <input type="hidden" name="proposal/economic_nature_name" value="<x:out select="$xmlData/data/proposal/economic_nature_name" />" />
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>技术攻关领域：</td>
        <td colspan="3">
            <c:set var="research_areas"><x:out select="$xmlData/data/proposal/research_areas_value" /></c:set>
            <cpt:checkbox key="research_areas" name="research_areas" value="${research_areas }" repeatColumn="4" tagType="radio" style="border: 0px; padding: 0px; margin: 0px;" ></cpt:checkbox>
            <input type="hidden" name="proposal/research_areas_value" id="research_areas_value" value="<x:out select="$xmlData/data/proposal/research_areas_value" />" class="required" label="技术攻关领域"/>
            <input type="hidden" name="proposal/research_areas_name" value="<x:out select="$xmlData/data/proposal/research_areas_name" />" />
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>归口管理部门：</td>
        <td colspan="3">
            <c:set var="recomend_org">
                {'id':'<x:out select="$xmlData/data/proposal/recomend_org_value"/>',
                'name':'<x:out select="$xmlData/data/proposal/recomend_org_name"/>'
                }
            </c:set>
            <cpt:tree id="recomend_org" key="recommended_org" cacheable="false"
                      className="hn_iuput_kuang required selectWidth3" readonly="true"
                      value="${recomend_org}" label="归口管理部门" showPattern="all"
                      shieldPattern="0" onClick="initTreeValue2">
            </cpt:tree>
            <input type="hidden" id="recomend_org_value"
                   name="proposal/recomend_org_value"
                   value="<x:out select="$xmlData/data/proposal/recomend_org_value" />"/>
            <input type="hidden" name="proposal/recomend_org_name"
                   value="<x:out select="$xmlData/data/proposal/recomend_org_name" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>业务处室：</td>
        <td colspan="3">
            <c:set var="default_admin_org"><x:out select="$xmlData/data/proposal/default_admin_org_value" /></c:set>
            <cpt:checkbox key="admin_org_office" name="default_admin_org" value="${default_admin_org }" repeatColumn="4" tagType="radio" style="border: 0px; padding: 0px; margin: 0px;" ></cpt:checkbox>
            <input type="hidden" name="proposal/default_admin_org_value" id="default_admin_org_value" value="<x:out select="$xmlData/data/proposal/default_admin_org_value" />" class="required" label="业务处室"/>
            <input type="hidden" name="proposal/default_admin_org_name" value="<x:out select="$xmlData/data/proposal/default_admin_org_name" />" />
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>上年度产值规模（万元）：</td>
        <td>
            <input type="text" name="proposal/output_value" value="<x:out select="$xmlData/data/proposal/output_value" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,11,2,2)" label="上年度产值规模"/>
        </td>
        <td align="right"><span class="color_red">*</span>人员规模（人）:</td>
        <td>
            <input type="text" name="proposal/staff_size" value="<x:out select="$xmlData/data/proposal/staff_size" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,7,0,0)" label="人员规模"/>
        </td>
    </tr>
    <tr>
        <td align="right" rowspan="3">联系人：</td>
        <td align="right">姓名：</td>
        <td>
            <span name="proposal/contact_psn_cname">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>
            </span>
        </td>
        <td align="right">职务：</td>
        <td>
            <span name="proposal/contact_position">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" />
            </span>
        </td>
    </tr>
    <tr>
        <td align="right">手机：</td>
        <td>
            <span name="proposal/contact_psn_mobile">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>
            </span>
        </td>
        <td align="right">电子邮箱：</td>
        <td>
            <span name="proposal/email_address">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>
            </span>
        </td>
    </tr>
    <tr>
        <td align="right">联系电话：</td>
        <td colspan="3">
            <span name="proposal/contact_psn_tel">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />
            </span>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>${curryear-2}年固定资产总额(万元)：</td>
        <td>
            <input type="text" name="proposal/fixed_assets" value="<x:out select="$xmlData/data/proposal/fixed_assets" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,11,2,2)" label="${curryear-2}年固定资产总额"/>
        </td>
        <td align="right"><span class="color_red">*</span>${curryear-2}年资产负债率（%）：</td>
        <td>
            <input type="text" name="proposal/asset_liability_ratio" value="<x:out select="$xmlData/data/proposal/asset_liability_ratio" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,7,2,2)" label="${curryear-2}年资产负债率（%）"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>${curryear-2}年研发加计扣除减免税（万元）：</td>
        <td>
            <input type="text" name="proposal/relief_fax_income_yanfa" value="<x:out select="$xmlData/data/proposal/relief_fax_income_yanfa" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,11,2,2)" label="${curryear-2}年研发加计扣除减免税（万元）"/>
        </td>
        <td align="right"><span class="color_red">*</span>${curryear-2}年高新技术企业减免税（万元）：</td>
        <td>
            <input type="text" name="proposal/relief_fax_income_reduce" value="<x:out select="$xmlData/data/proposal/relief_fax_income_reduce" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,11,2,2)" label="${curryear-2}年高新技术企业减免税（万元）"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>${curryear-2}年营业（销售）收入（万元）：</td>
        <td>
            <input type="text" name="proposal/income" value="<x:out select="$xmlData/data/proposal/income" />" class="required" style="text-align: right" onfocus="InitInput.setNumber(this,11,2,2)" label="${curryear-2}年营业（销售）收入（万元）"/>
        </td>
        <td align="right"><span class="color_red">*</span>${curryear-2}年实际上缴税费总额（万元）：</td>
        <td>
            <input type="text" name="proposal/fax" value="<x:out select="$xmlData/data/proposal/fax" />" class="required" style="text-align: right" onfocus="InitInput.setNumber(this,11,2,2)" label="${curryear-2}年实际上缴税费总额（万元）"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>${curryear-2}年减免税总额(万元 )：</td>
        <td>
            <input type="text" name="proposal/relief_reduction_total" value="<x:out select="$xmlData/data/proposal/relief_reduction_total" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,11,2,2)" label="${curryear-2}年减免税总额(万元 )"/>
        </td>
        <td align="right"><span class="color_red">*</span>${curryear-2}年研发经费支出总额（万元）：</td>
        <td>
            <input type="text" name="proposal/outcome_reserch" value="<x:out select="$xmlData/data/proposal/outcome_reserch" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,11,2,2)" label="${curryear-2}年研发经费支出总额（万元）"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2"><span class="color_red">*</span>其中，${curryear-2}年用于研发的仪器和设备支出（万元）：</td>
        <td>
            <input type="text" name="proposal/yanfa_instrument" value="<x:out select="$xmlData/data/proposal/yanfa_instrument" />" style="text-align: right" class="required" onfocus="InitInput.setNumber(this,11,2,2)" label="其中，${curryear-2}年用于研发的仪器和设备支出（万元）"/>
        </td>
        <td align="right"><span class="color_red">*</span>${curryear-2}年研发支出占销售收入比重（%）：</td>
        <td>
            <input type="text" name="proposal/income_bl" value="<x:out select="$xmlData/data/proposal/income_bl" />" class="required" style="text-align: right" onfocus="InitInput.setNumber(this,7,2,2)" label="${curryear-2}年研发支出占销售收入比重（%）"/>
        </td>
    </tr>
</table>
<script>
    function initTreeValueTeamPerson(treeId, treeNode) {
        //针对单位性质
        if (( treeNode && treeNode.isParent)) {
            scmWarn("请选择具体的"+$("#" + treeId).attr("label"));
            $("#" + treeId).val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
            return false;
        }
        var str = treeNode.name.split("-")[0];
        var obj = treeNode.parentNode;
        while (obj != null) {
            //str = obj.name + "-" + str;
            obj = obj.parentNode;
        }
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
        $("#" + treeId).val(str);
        initTreeValue2CallBack();
    }
</script>